package org.codeart.status.example01;

import lombok.Data;

/**
 * 上下文类
 */
@Data
public class Context {
    
    // 维护一个对状态对象的引用
    private State currentState;
    
    public Context() {
        this.currentState = null;
    }

    public Context(State currentState) {
        this.currentState = currentState;
    }
}
